package com.huilian.tool.work.weixin.dto;

import com.huilian.tool.work.weixin.enums.MediaTypeEnum;
import lombok.Data;

/**
 * @Author 少凡
 * @Date 2022-07-12 20:36
 * version 1.0
 */
@Data
public class Attachment {

    private MediaTypeEnum msgtype;
    private Media.Text text;
    private Media.Image image;
    private Media.Video video;
    private Media.Link link;
    private Media.MiniProgram miniprogram;
    private Media.File file;

    private Integer notify;  //是否通知成员将这条入群欢迎语应用到客户群中，0-不通知，1-通知， 不填则通知
    private String template_id;

    public String getMsgtype() {
        if(msgtype != null){
            return msgtype.getCode();
        }
       return null;
    }



}
